home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
USA Bestseller
/
USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso
/
e255
/
makewin.bat
< prev
next >
Wrap
DOS Batch File
|
1994-02-20
|
2KB
|
65 lines
ECHO OFF
CLS
IF NOT !%1==! GOTO A
GOTO C
:A
IF NOT !%2==! GOTO B
:C
ECHO .
ECHO The correct command line is as follows:
ECHO .
ECHO MAKEWIN c:\windows file «--- DO NOT TYPE "RLE" EXTENSION
ECHO .
ECHO Type in your Windows drive/directory in place of "c:\windows",
ECHO and type in the RLE file of your choice in place of "file",
ECHO without typing the RLE extension.
ECHO .
ECHO (example: MAKEWIN D:\WINDOWS MCKYLOG)
ECHO .
ECHO This will create a new COM file in your Windows directory, with the
ECHO same name as the RLE file that you typed in place of "file" in the
ECHO above command. (example: MCKYLOG.COM)
ECHO .
ECHO .
GOTO END
:B
IF EXIST %1\WIN.COM GOTO B1
ECHO The file "WIN.COM" cannot be found in the Windows directory you typed,
ECHO "%1".
ECHO .
IF EXIST %2.RLE GOTO C
ECHO The RLE file you indicated, "%2.RLE", cannot be found...
ECHO The RLE files should be in the same directory as this MAKEWIN file.
ECHO .
GOTO C
:B1
IF EXIST %2.RLE GOTO B2
ECHO The RLE file you indicated, "%2.RLE", cannot be found...
ECHO The RLE files should be in the same directory as this MAKEWIN file.
ECHO .
GOTO C
:B2
IF EXIST %1\SYSTEM\WIN.CNF GOTO B3
ECHO The file "WIN.CNF" cannot be found in the Windows SYSTEM directory,
ECHO "%1\SYSTEM".
ECHO .
ECHO .
GOTO END
:B3
IF EXIST %1\SYSTEM\VGALOGO.LGO GOTO B4
ECHO The file "VGALOGO.LGO" cannot be found in the Windows SYSTEM directory,
ECHO "%1\SYSTEM".
ECHO .
ECHO .
GOTO END
:B4
COPY /B /V %1\SYSTEM\WIN.CNF+%1\SYSTEM\VGALOGO.LGO+%2.RLE %1\%2.COM
CLS
ECHO .
ECHO DONE!
ECHO .
ECHO "%2.COM" ready for run from the "%1" directory.
ECHO .
ECHO .
:END